Pelago\Emogrifier\CssInliner D

Total Complexity 128
Dependencies 8
Dependents 0
Total lines 1,323
Lines of code 524
Logical lines of code 278
Comment lines 581
Methods 54
Properties 14

Methods 54

Method Rating Maintainability Complexity Lines of code
parseCssRules()
A
46 8 37
process()
A
47 8 35
generateStyleStringFromDeclarationsArrays()
S
51 7 27
splitCssAndMediaQuery()
S
46 5 39
getNodesToExclude()
S
57 5 17
removeInvisibleNodes()
S
60 5 13
removeUnprocessableTags()
S
63 5 11
addContentTypeMetaTag()
S
55 4 20
copyUninlineableCssToStyleNode()
S
55 4 20
parseCssDeclarationsBlock()
S
56 4 18
getCssSelectorPrecedence()
S
56 4 16
existsMatchForCssSelector()
S
62 4 11
removeImportantAnnotationFromNodeInlineStyle()
S
55 3 20
sortBySelectorPrecedence()
S
66 4 7
getCssRuleMatches()
S
58 3 15
getCssFromAllStyleNodes()
S
62 3 12
__construct()
S
63 3 10
normalizeStyleAttributes()
S
59 2 15
normalizeStyleAttributesOfAllNodes()
S
67 3 8
fillStyleAttributesWithMergedStyles()
S
61 2 13
copyInlineableCssToStyleAttribute()
S
62 2 12
removeImportantAnnotationFromAllInlineStyles()
S
74 2 5
postProcess()
S
75 2 5
removeUnprocessableHtmlTag()
S
70 2 6
ensureExistenceOfBodyElement()
S
68 2 7
removeAllowedMediaType()
S
73 2 5
removeExcludedSelector()
S
73 2 5
ensureDocumentType()
S
68 2 7
createRawDomDocument()
S
62 1 12
addStyleElementToDocument()
S
66 1 8
removeUnmatchablePseudoComponents()
S
66 1 8
attributeValueIsImportant()
S
77 1 3
generateStyleStringFromSingleDeclarationsArray()
S
79 1 3
addAllowedMediaType()
S
80 1 3
addExcludedSelector()
S
80 1 3
emogrifyBodyContent()
S
77 1 4
getDomDocument()
S
82 1 3
setCss()
S
81 1 3
render()
S
81 1 3
renderBodyContent()
S
74 1 4
getBodyElement()
S
80 1 3
getHeadElement()
S
80 1 3
emogrify()
S
77 1 4
createUnifiedDomDocument()
S
77 1 4
setHtml()
S
81 1 3
prepareHtmlForDomConversion()
S
76 1 4
getAllNodesWithStyleAttribute()
S
80 1 3
disableInlineStyleAttributesParsing()
S
81 1 3
disableStyleBlocksParsing()
S
81 1 3
disableInvisibleNodeRemoval()
S
81 1 3
clearAllCaches()
S
69 1 8
purgeVisitedNodes()
S
77 1 4
addUnprocessableHtmlTag()
S
80 1 3
setDebug()
S
81 1 3